package question2;

public class BingXiang extends DianQi {
    private String kuanshi;
    private String zhileng;

    public BingXiang() {
    }

    public BingXiang(String pingpai, String type, String color, String price, String kuanshi, String zhileng) {
        super(pingpai, type, color, price);
        this.kuanshi = kuanshi;
        this.zhileng = zhileng;
    }

    public String getKuanshi() {
        return kuanshi;
    }

    public void setKuanshi(String kuanshi) {
        this.kuanshi = kuanshi;
    }

    public String getZhileng() {
        return zhileng;
    }

    public void setZhileng(String zhileng) {
        this.zhileng = zhileng;
    }

    @Override
    public String toString() {
        return "BingXiang{" +
                "kuanshi='" + kuanshi + '\'' +
                ", zhileng='" + zhileng + '\'' +
                ", pingpai='" +getPingpai()  + '\'' +
                ", type='" + getType() + '\'' +
                ", color='" + getColor() + '\'' +
                ", price='" + getPrice() + '\'' +
                '}';
    }
}
